package com.xm.web.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author yousj
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父id
     */
    @TableField("parent_id")
    private Integer parentId;

    /**
     * 名称
     */
    @TableField("permission_name")
    private String permissionName;

    /**
     * 规则
     */
    @TableField("permission_rule")
    private String permissionRule;

    /**
     * 路由
     */
    @TableField("permission_router")
    private String permissionRouter;

    /**
     * 类型, 0 菜单, 1 按钮
     */
    @TableField("permission_type")
    private Integer permissionType;

    /**
     * 菜单icon
     */
    @TableField("icon")
    private String icon;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 状态, 0 停用, 1 启用
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


}
